document.querySelector("html").innerHTML = $rs['html']; $ = undefined;
(function (window, undefined) {
    $ = undefined;
    with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'];
    var shb_link = document.createElement('link'); shb_link.type = 'text/css'; shb_link.rel = 'stylesheet'; shb_link.href = '__CHOST__/style/style_color_sbp.css'; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(shb_link)];
    var $ly = {
        extend: function () {
            var $i = 1, $target = arguments[0], $new, $length = arguments.length;
            if ($length < 2) return $target;
            for (; $i <= $length; $i++) {
                $new = arguments[$i];
                for ($key in $new) {
                    $target[$key] = $new[$key];
                }
            }
            return $target;
        },
        exe_jquery_func: function () {
            var $c = $ly.extend({ "time": 30, "condition": function () { return true } }, arguments[0]);
            (function () {
                var func_temp = function () {
                    if (window.$ && window.$(document).on && $c.condition()) {
                        $c.func();
                    } else {
                        setTimeout(func_temp, $c.time);
                    }
                }
                func_temp();
            })();
            return this;
        }
    }
    window.$ly = $ly;
})(window);

with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'https://<{$pre}>.zoosnet.net/JS/LsJS.aspx?siteid=<{$swt_id}>&lng=cn&float=0'];

$ly.exe_jquery_func({
    "func": function () {
        var $dp = encodeURIComponent(window.location.href); if ($dp.length > 200) $dp = $dp.substr(0, 200);

        var $wd = "<{$keyword|urldecode}>", $shbydy1 = '<{$duihua_arr[0]|isset}>', $shbydy2 = '<{$duihua_arr[1]|isset}>', $shbydy3 = '<{$duihua_arr[2]|isset}>', $shbydy4 = '<{$duihua_arr[3]|isset}>', backclick_func = function () {
            var backurl = '';
            if (backurl == '') {
                try {
                    window.location.href = "http://<{$pre}>.zoosnet.net/LR/Chatpre.aspx?id=<{$swt_id}>&lng=cn&lng=cn&shbkwod=111&e=777<{$keyword}>&p=" + $dp;
                } catch (err) {
                    window.location.href = "http://<{$pre}>.zoosnet.net/LR/Chatpre.aspx?id=<{$swt_id}>&lng=cn&lng=cn&shbkwod=111&e=777<{$keyword}>&p=" + $dp;
                }
            } else {
                window.location.href = backurl;
            }
        },
            click_func = function () {
                var $val = encodeURIComponent($(this).attr("title"));
                try {
                    //window.location.href="http://<{$pre}>.zoosnet.net/LR/Chatpre.aspx?id=<{$swt_id}>&lng=cn&lng=cn&shbkwod="+$val+"&e=777<{$keyword}>"+"&p="+$dp;
                    openZoosUrl('chatwin', '&shbkwod=' + $val + "&e=777<{$keyword}>");
                } catch (err) {
                    window.location.href = "http://<{$pre}>.zoosnet.net/LR/Chatpre.aspx?id=<{$swt_id}>&lng=cn&lng=cn&shbkwod=" + $val + "&e=777<{$keyword}>" + "&p=" + $dp;
                }
            },
            click_phone_func = function () {
                var $val = encodeURIComponent($(this).attr("title")); try {
                    window.location.href = "tel:" + $val;
                } catch (err) {
                    window.location.href = "tel:" + $val;
                }
            };


        // with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 
        // '//v8.baldh.com/eval_t.do?v=K0GdfRl3z99osBZC&wd=<{$keyword}>'];

        //    $line='您好!';
        //$("textarea").val($wd);
        setTimeout(function () { $('#ly_search_wd_div').fadeIn(100) }, 300);
        $("#ly_search_wd_div_wd").html($wd);


        //$('.shb-ly-section1 .line2:first .shbleft div').html("<i></i>"+$line);
        $("#shb-bottomsend").on("click", function () {
            var $val = $.trim($(".shb-editor").val());

            if ($val == '' || $val.length == 0) {
                $val = "777";
            }
            if (/^\d{2}$/.test($val)) {
                $val = $val + "岁";
            }
            $val = encodeURIComponent($val);
            try {
                //window.location.href="http://<{$pre}>.zoosnet.net/LR/Chatpre.aspx?id=<{$swt_id}>&lng=cn&lng=cn&shbkwod="+$val+"&e=777<{$keyword}>"+"&p="+$dp;
                openZoosUrl('chatwin', '&shbkwod=' + $val + "&e=777<{$keyword}>");
            } catch (err) {
                window.location.href = "http://<{$pre}>.zoosnet.net/LR/Chatpre.aspx?id=<{$swt_id}>&lng=cn&lng=cn&shbkwod=" + $val + "&e=777<{$keyword}>" + "&p=" + $dp;
            }
        });

        <{php}>
        foreach($duihua_arr as $key=>$val){
           $res = ' if ($shbydy'.($key+1).') {'. 
                'setTimeout(function () { $(\'.shb-ly-section1 .shbydy'.($key+1).'\').fadeIn(100) }, '.(1000+$key*$dialog_time*1000).') '.
            '};';
           echo $res; 
        }
        <{/php}>


        $("#backclick").on("click", backclick_func);
        $(".click_func").on("click", click_func);
        $(".click_phone_func").on("click", click_phone_func);

        setTimeout(function () {
            $(".shb-ly-section1 .line2:last .shbleft div img").addClass("ly-animation-bell").addClass("on");
        }, 10000);


        setInterval(function () {
            $("#LRdiv1").css({ "display": "none" });
            $("#LRdiv2").css({ "display": "none" });
            $("#LRdiv3").css({ "display": "none" });
            $("#LRdiv4").css({ "display": "none" });

            $("#mobile_ivt_div").css({ "display": "none" });
            $("#mobile_icon_div").css({ "display": "none" });
        }, 100)

        setTimeout(function () {
            var f = document.body; var childs = f.childNodes; for (var i = childs.length - 1; i >= 0; i--) { if (childs[i].nodeName.indexOf('MINE') < 0) f.removeChild(childs[i]); }
        }, 10);
        window.onload = function () {
            var f = document.body; var childs = f.childNodes; for (var i = childs.length - 1; i >= 0; i--) { if (childs[i].nodeName.indexOf('MINE') < 0) f.removeChild(childs[i]); }
        }

    }
});